<?php

namespace app\webapp\controller;

use app\common\controller\Frontend;
use EasyWeChat\Core\Exception;
use think\Config;
use think\Request;
use think\Validate;

class Rensheju extends Common
{

    protected $layout = 'bootstrap';

    public function _initialize()
    {
        parent::_initialize();
    }

    public function index($xianyuid)
    {
        //验证登陆
        /*try{

        }catch (Exception $e){

        }*/
        if(request()->isGet() && !empty($xianyuid)){
            $rule = ['xianyuid' => 'require|number|length:6'];
            $data = ['xianyuid' => $xianyuid];
            $Valdate = new Validate($rule);
            $retult = $Valdate->check($data);
            if (!$retult) {
                $this->error();
            }
        }
        return $this->view->fetch();
    }

    /**
     * banner 活动详情
     * @par artid 活动ID
     */
    public function banner($artid){
        return $this->view->fetch();
    }

    /**
     * 公告详情
     * @p artid 公告ID
     */

    public function Notice($artid){
        return $this->view->fetch();
    }

    /**
     * 协议详情
     * @par queryid
     */
    public function Agreement($artid){

        return $this->view->fetch();
    }
}
